package org.example.chapter03.web;

import javax.servlet.*;
import java.io.IOException;

public class MyFilter implements Filter
{
    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
            throws IOException, ServletException
    {
        System.out.println("处理请求前的处理");
        filterChain.doFilter(servletRequest, servletResponse);
        System.out.println("处理请求后的处理");
    }
}
